description = '分类页广告产品部件'
==
{% if count(adproducts)>0 %}
<div class="adimg" >
    <div class="swiper-container adproducts">
        <ul class="swiper-wrapper">
            {% for adproduct in adproducts %}
            <li class="swiper-slide">

                <a href="{{adproduct.url}}?rel=product-newsale">
                    {% for img in adproduct.feature_image %}
                    {% if loop.index == 1%}
                    <img src="{{ img.path }}" alt="{{ adproduct.name }}">
                    {% endif %}
                    {% endfor %}
                </a>

                <a class="wishlist_btn" href="javascript:;"
                   data-request="onAddToWishlist"
                   data-request-data="key: {{ adproduct.id }}" role="button">
                    <span class="wishlist"></span>
                </a>
                <p class="proTitle"><a href="{{adproduct.url}}?rel=product-newsale">{{adproduct.name}}</a></p>
                <p class="proPirce"><span>{{ adproduct.list_price|displayPrice }}</span> 税込</p>
                <p class="proOldpirce"><span>{{ adproduct.price|displayPrice }}</span> 税抜</p>
                <span class="reviewStar size2 star{{ adproduct.rating }}"></span>
                {% if adproduct.reviews_total %}
                <a href="{{ adproduct.url }}?rel={{ list }}#reviews" class="reviewsShow">レビュー / <b>{{ adproduct.reviews_total }}</b> 件</a>
                {% endif %}
            </li>
            {% endfor %}
            {% for key, val in catalog.productSection('promote-product', products.data[0].id).items %}
            {% if val.id not in pida %}
            <li class="swiper-slide">

                <a href="{{val.url}}?rel=product-newsale">
                    {% for img in val.feature_image %}
                    {% if loop.index == 1%}
                    <img src="{{ img.path }}" alt="{{ val.name }}">
                    {% endif %}
                    {% endfor %}
                </a>

                <a class="wishlist_btn" href="javascript:;"
                   data-request="onAddToWishlist"
                   data-request-data="key: {{ val.id }}" role="button">
                    <span class="wishlist"></span>
                </a>
                <p class="proTitle"><a href="{{val.url}}?rel=product-newsale">{{val.name}}</a></p>
                <p class="proPirce"><span>{{ val.list_price|displayPrice }}</span> 税込</p>
                <p class="proOldpirce"><span>{{ val.price|displayPrice }}</span> 税抜</p>
                <span class="reviewStar size2 star{{ val.rating }}"></span>
                {% if val.reviews_total %}
                <a href="{{ val.url }}?rel={{ list }}#reviews" class="reviewsShow">レビュー / <b>{{ val.reviews_total }}</b> 件</a>
                {% endif %}
            </li>
            {% endif %}
            {% endfor %}
           </ul>
        <div class="swiper-button-next adproductsNext"></div>
        <div class="swiper-button-prev adproductsPrev"></div>
    </div>
</div>
{% endif %}
{% put scripts %}
<script type="text/javascript">
    var mySwiper3 = new Swiper ('.adproducts', { //所有4个布局的轮播
        direction: 'horizontal',
        loop: false,
        slidesPerView:4,
        slidesPerGroup : 4,
        paginationClickable:true,
        nextButton: '.adproductsNext',
        prevButton: '.adproductsPrev',
        
    })  
</script>
{% endput %}